package net.lab1024.sa.admin.module.business.erp.domain.form.add;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备表 新建表单
 *
 * @Author akita
 * @Date 2025-04-17 16:47:56
 * @Copyright akita
 */

@Data
public class MachineAddForm {

    @Schema(description = "电键", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "电键 不能为空")
    private Long docEntry;

    @Schema(description = "机器名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "机器名称 不能为空")
    private String macName;

    private Integer objId;
    private String objName;
    private String docStatus;
    private Long deptId;
    private String deptName;
    private Integer absId;
    private Boolean approved;
    @Version
    private Integer version;
    private String remark;
    @TableField(fill = FieldFill.INSERT)
    private Long createById;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateById;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private Boolean edit = false;
    private BigDecimal cost;

    private String macAddress;

}